<div class="modal fade bs-modal-lg" id="modelContent">
	<div class="modal-dialog modal-lg">
        <div class="modal-content"></div>
    </div>
</div> 

<div class="portlet box green">
    <div class="portlet-title">
		<div class="caption"><i class="fa fa-cogs"></i>基本设置 > 服务项管理 > 配送说明设置</div>
		<div class="tools"><a href="javascript:;" class="collapse" data-original-title="" title=""> </a></div>
		<div class="actions"><a href="#modelContent" thref="/deliverysExplain/add" class="btn white btn-sm ajax-model-get" data-toggle="modal"><i class="fa fa-plus"></i> 新增 </a></div>
    </div>
    <div class="portlet-body">
    	<div class="dataTables_wrapper no-footer">
			<div class="table-scrollable">
			    <table class="table table-striped table-bordered table-hover">
				  	<thead>
						<tr>
		   		 			<th>范围类型</th>
		   		 			<th>配送说明</th>
		   		 			<th>启用</th>
		   		 			<th>创建时间</th>
							<th class="col-md-2">操作</th>
						</tr>
					</thead>
					<tbody>
					#foreach($item in $pageDeliverysExplain.result)
		  				<tr>  
						    <td>$!item.scopeType</td>
						    <td>$!item.explains</td>
						    <td>#if($!item.state==1)
						    	<span class="glyphicon glyphicon-ok-circle" style="color: lightgreen">
						    	#end
						    	#if($!item.state==0)
						    	<span class="glyphicon glyphicon-remove-circle" style="color: red">
						    	#end
						    </td>
						    <td>$!item.createTime</td>
			    			<td>
						    	<a class="btn green btn-outline btn-sm ajax-model-get" data-toggle="modal"
									href="#modelContent" thref="/deliverysExplain/edit?id=$!item.id&"> 
									<i class="fa fa-edit"></i>修改
								</a>
								#if($!item.state==0)
								<a class="btn green btn-outline btn-sm ajax-delete" 
									href="javascript:;" thref="/deliverysExplain/delete?id=$!item.id">
									<i class="fa fa-trash"></i>删除
								</a>
								#end
								#if($!item.state==1)
								<a class="btn green btn-outline" 
									href="javascript:;" onclick="alert('启用状态不能删除')">
									<i class="fa fa-trash"></i>删除
								</a>
								#end
						    </td>		  			
		  				</tr>
					#end
					</tbody>
				</table>
			</div>
			#set($page=$pageDeliverysExplain)
			#set($pageUrl="/deliverysExplain/list?&pageNo=")
			#parse("_page.htm")
		</div>
    </div>
</div>


